From 5348ff2ec07add9d95b67bef3a5ae7f85ee4b393 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 28 Nov 2006 13:48:47 +0000 Subject: [PATCH] [HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot. Basically, this patch reverts part of c/s 12264. Signed-off-by: Tom Woller --- xen/arch/x86/hvm/svm/svm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 7c385781d8..a9cc9e9325 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -1526,10 +1526,9 @@ static int svm_set_cr0(unsigned long value) if (test_bit(SVM_CPU_STATE_LME_ENABLED, &v->arch.hvm_svm.cpu_state)) { - /* Here the PAE is should to be opened */ HVM_DBG_LOG(DBG_LEVEL_1, "Enable the Long mode\n"); set_bit(SVM_CPU_STATE_LMA_ENABLED, &v->arch.hvm_svm.cpu_state); - vmcb->efer |= EFER_LMA; + vmcb->efer |= EFER_LMA | EFER_LME; } #endif /* __x86_64__ */ -- 2.30.2